<template>
  <div class="title">
    
    <div class="title-l">
      <i class="title-icon"></i>
      <p class="title-name">{{name}}</p>
    </div>
    <span class="title-r" @click="$router.push({path: `/tag/${tagId}`})">更多</span>
  </div>
</template>

<script>
export default {
  props: ['name','tagId']
}
</script>

<style lang="scss" scoped>
.title {
    display: flex;
    justify-content: space-between;
    padding: 25px 15px 0 15px;
  .title-l {
    display: flex;
    
    .title-icon {
      display: block;
      background: url("../assets/title-icon.png") no-repeat 0 0;
      background-size: 20px 24px;
      width: 20px;
      height: 24px;
      margin-right: 6px;
    }
    .title-name {
        font-size: 16px;
        color: var(--title-name-black);
    }
  }
  .title-r {
    font-size: 14px;
    background-color: var(--more-bg-white);
        color: var(--more-font-grey);
        border-radius: 999px;
        padding: 3px 15px;
  }
}
</style>